package com.xiaoge.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
* @Author: 冷俊杰
* @Description: 讲师信息
* @DateTime: 2022/10/28 12:02
**/
@Data
@TableName(value = "edu_lecturer")
public class EduLecturer {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)//创建时自动填充
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)//创建与修改时自动填充
    private Date gmtModified;

    /**
     * 状态(1:正常，0:禁用)
     */
    @TableField(value = "status_id")
    private Byte statusId;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 讲师用户编号
     */
    @TableField(value = "lecturer_user_no")
    private Long lecturerUserNo;

    /**
     * 讲师名称
     */
    @TableField(value = "lecturer_name")
    private String lecturerName;

    /**
     * 讲师手机
     */
    @TableField(value = "lecturer_mobile")
    private String lecturerMobile;

    /**
     * 讲师邮箱
     */
    @TableField(value = "lecturer_email")
    private String lecturerEmail;

    /**
     * 职位
     */
    @TableField(value = "position")
    private String position;

    /**
     * 头像
     */
    @TableField(value = "head_img_url")
    private String headImgUrl;

    /**
     * 简介
     */
    @TableField(value = "introduce")
    private String introduce;

    public static final String COL_ID = "id";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_STATUS_ID = "status_id";

    public static final String COL_SORT = "sort";

    public static final String COL_LECTURER_USER_NO = "lecturer_user_no";

    public static final String COL_LECTURER_NAME = "lecturer_name";

    public static final String COL_LECTURER_MOBILE = "lecturer_mobile";

    public static final String COL_LECTURER_EMAIL = "lecturer_email";

    public static final String COL_POSITION = "position";

    public static final String COL_HEAD_IMG_URL = "head_img_url";

    public static final String COL_INTRODUCE = "introduce";
}